package datas
{
	import main.ClientConstants;
	import main.DataSubBase;
	import main.LocalStoreInfo;
	
	import struct.RecommendPath;
	
	public class SysRecommendPathData extends DataSubBase
	{
		private var sysRecommendPathList:Array;
		
		public function SysRecommendPathData()
		{
			sysRecommendPathList = [];	
		}
		
		public function get pathList():Array
		{
//			xmlLoader.recommendPathXml.initThis(initList);
			initList();
			
			return sysRecommendPathList;
		}
		
		private function initList():void
		{
			sysRecommendPathList = [];
			var list:Array = xmlLoader.recommendPathXml.load("path");
			for(var i:int = 0;i < list.length;i++){
				var obj:RecommendPath = new RecommendPath();
				obj.init(data.uri,data.xmlLoaderManager);
				obj.initWithData(list[i]);
				sysRecommendPathList.push(obj);
			}
		}
	}
}